import request from '/@/utils/request'

export const getConfig = (data:any) => {
  return request({
    url: '/backstage/config',
    method: 'post',
    data
  })
}
export const updateConfig = (data:any) => {
  return request({
    url: '/backstage/config/updateConfig',
    method: 'post',
    data
  })
}

export const getHistory = (data:any) => {
  return request({
    url: '/backstage/history/getList',
    method: 'post',
    data
  })
}
export const getDetail = (data:any) => {
  return request({
    url: '/backstage/history/getDetail',
    method: 'post',
    data
  })
}

export const addSearch = (data:any) => {
  return request({
    url: '/backstage/history/addSearch',
    method: 'post',
    data
  })
}

export const doDelete = (data:any) => {
  return request({
    url: '/backstage/history/doDelete',
    method: 'post',
    data
  })
}
export const getLastHistoryDetail = (data:any) => {
  return request({
    url: '/backstage/history/getLastHistoryDetail',
    method: 'post',
    data
  })
}
